package cn.edu.lzzy.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
public class SwaggerConfig {
    @Bean
    public Docket docket(){
        return new Docket(DocumentationType.OAS_30).apiInfo(
                new ApiInfoBuilder()
                        .contact(new Contact("柳职","http://www.lzzy.edu.cn/","admin@lzzy.net"))
                        .title("web课程实训 API")
                        .description("这是一个学生习题集系统的API应用实现，2021软件技术3班荣誉出品")
                        .version("v1.0")
                        .build()
        );
    }
}
